


// test create AdUi Object
var au = new AdUi();

// test create step for AdUi
au.on( AdUi.step.BeforeStart ,function(){
	console.log( "AdUi 启动中..." );
});
au.on( AdUi.step.AfterStart ,function(){
	console.log( "AdUi 启动完成..." );
});
au.on( AdUi.step.BeforeShutdown ,function(){
	console.log( "AdUi 关闭中..." );
});
au.on( AdUi.step.AfterShutdown ,function(){
	console.log( "AdUi 关闭完成..." );
});
au.start();

// test install app
for( var i = 0; i < 10; i++ ){
	var options = {
		appid : "test app" + i
	};
	
	var auapp = new AdUiApp( options );
	
	au.installApp( auapp );
}


